package com.atomos.strategy.action.position
{
	import com.atomos.particle.Particle;
	import com.atomos.strategy.action.AbstractAction;
	import com.atomos.strategy.action.ActionStrategy;	

	public class MoveAction extends AbstractAction implements ActionStrategy
	{	
		public override function process( particle : Particle ) : void
		{
			particle.lastPosition.x = particle.position.x;			particle.lastPosition.y = particle.position.y;
			
			particle.position.x += particle.velocity.x * _nTimeStep;
			particle.position.y += particle.velocity.y * _nTimeStep;
		}
		
	}
}